<?php


namespace App\Admin\Forms\Settings;


use Illuminate\Support\Str;

class SyncSetting extends BaseForm
{
    public $title = '费用监控设置';
    protected $type = 'sync';
    public $settings = [
        'sync_secret' => '密钥(secret)',
        'sync_patent_type' => '专利类型',
    ];

    public function form()
    {
        $this->text('sync_secret', data_get($this->settings, 'sync_secret'))->default(Str::uuid()->getHex());
        $this->checkbox('sync_patent_type', data_get($this->settings, 'sync_patent_type'))
            ->options([1 => '发明专利', 2 => '实用新型', 3 => '外观设计']);
        $this->disableReset();
    }


}
